from langdev_helper.llm.lcex import llm_lcex as model

from langchain_core.output_parsers import StrOutputParser
from langchain_core.prompts import ChatPromptTemplate

prompt = ChatPromptTemplate.from_template("tell me a joke about {topic}")

chain = prompt | model | StrOutputParser()

resp = chain.invoke({"topic": "bears"})

print(resp)